package com.作业.Day2;

public class Homework2 {
    public static void main(String[] args) {
        int i=1;
        int sum=0;
        while(i<=100){
            sum+=i;
            System.out.println("执行"+(i++)+"次"+"当前总和为"+sum);

        }
    }

}
